package org.foreveross.que.applicationImpl;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
import org.foreveross.que.entity.SystemEntity;
import org.foreveross.que.infra.base.ddd.repository.IBaseRepository;
import org.springframework.stereotype.Service;

import org.foreveross.que.application.SystemApplication;

@Service
public class SystemApplicationImpl implements SystemApplication{
	
	@Resource(name="entityHibernateRepository") IBaseRepository baseRepository;
	@Override
	public SystemEntity getEntity(String sysType) {
		if(StringUtils.isBlank(sysType)){
			return null;
		}
		return baseRepository.get(SystemEntity.class, sysType);
	}

}
